package com.xmh.autocode.vo;

import lombok.Data;

import java.util.List;

@Data
public class TableVo {

    /**
     * 表名称
     */
    private String name;

    /**
     * 表类型
     */
    private String type;

    /**
     * 表所属数据库
     */
    private String cat;

    /**
     * 表所属用户名:
     */
    private String schem;

    /**
     * 表备注
     */
    private String remarks;

    /**
     * 表字段
     */
    private List<ColumnVo> columnList;

    public TableVo(String name, String remarks, List<ColumnVo> columnList) {
        this.name = name;
        this.remarks = remarks;
        this.columnList = columnList;
    }

    public TableVo() {
    }

    public TableVo(String name, String type, String cat, String schem, String remarks, List<ColumnVo> columnList) {
        this.name = name;
        this.type = type;
        this.cat = cat;
        this.schem = schem;
        this.remarks = remarks;
        this.columnList = columnList;
    }
}
